package com.ruoyi.back.service.impl;

import java.util.List;

import com.ruoyi.back.domain.IndexIntroduce;
import com.ruoyi.back.mapper.IndexIntroduceMapper;
import com.ruoyi.back.service.IIndexIntroduceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 首页内容介绍Service业务层处理
 * 
 * @author luguanqing
 * @date 2021-04-06
 */
@Service
public class IndexIntroduceServiceImpl implements IIndexIntroduceService
{
    @Autowired(required = false)
    private IndexIntroduceMapper indexIntroduceMapper;

    /**
     * 查询首页内容介绍
     * 
     * @param id 首页内容介绍ID
     * @return 首页内容介绍
     */
    @Override
    public IndexIntroduce selectIndexIntroduceById(String id)
    {
        return indexIntroduceMapper.selectIndexIntroduceById(id);
    }

    /**
     * 查询首页内容介绍列表
     * 
     * @param indexIntroduce 首页内容介绍
     * @return 首页内容介绍
     */
    @Override
    public List<IndexIntroduce> selectIndexIntroduceList(IndexIntroduce indexIntroduce)
    {
        return indexIntroduceMapper.selectIndexIntroduceList(indexIntroduce);
    }

    /**
     * 新增首页内容介绍
     * 
     * @param indexIntroduce 首页内容介绍
     * @return 结果
     */
    @Override
    public int insertIndexIntroduce(IndexIntroduce indexIntroduce)
    {
        return indexIntroduceMapper.insertIndexIntroduce(indexIntroduce);
    }

    /**
     * 修改首页内容介绍
     * 
     * @param indexIntroduce 首页内容介绍
     * @return 结果
     */
    @Override
    public int updateIndexIntroduce(IndexIntroduce indexIntroduce)
    {
        return indexIntroduceMapper.updateIndexIntroduce(indexIntroduce);
    }

    /**
     * 批量删除首页内容介绍
     * 
     * @param ids 需要删除的首页内容介绍ID
     * @return 结果
     */
    @Override
    public int deleteIndexIntroduceByIds(String[] ids)
    {
        return indexIntroduceMapper.deleteIndexIntroduceByIds(ids);
    }

    /**
     * 删除首页内容介绍信息
     * 
     * @param id 首页内容介绍ID
     * @return 结果
     */
    @Override
    public int deleteIndexIntroduceById(String id)
    {
        return indexIntroduceMapper.deleteIndexIntroduceById(id);
    }
}
